<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                template="/WEB-INF/template/crud/crud.xhtml">
    <ui:define name="crud">
        <!--<h:inputHidden value="# s{MB.selected}" />-->
        <h:panelGroup>
            <ui:include src="/WEB-INF/template/crud/headercrud.xhtml"/>
            <ui:insert name="view" />
            <hr/>
            <h:commandLink action="#{MB.prepareEditFromView}" styleClass="btn btn-success" accesskey="E">
                <i class="icon-edit icon-white"> <!--  --> </i> <font color="white"><u>E</u>ditar</font>
            </h:commandLink> <!-- -->
            <h:commandLink action="#{MB.destroyAndView}" styleClass="btn btn-danger" onclick="return confirm('Confirma a exclusão?');" accesskey="x">
                <i class="icon-trash icon-white"> <!--  --> </i> <font color="white">E<u>x</u>cluir</font>
            </h:commandLink> <!-- -->
        </h:panelGroup>
    </ui:define>
</ui:composition>